<?php if ( !defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' ); ?>
<div class="reg">
    <h3>免费注册</h3>
    <div class="tipbox">
        <?php echo validation_errors(); ?>
    </div>
    <?php echo form_open( base_url( 'register/submit' ) ); ?>
    <ul class="common_form">
        <li>
            <label for="email">邮箱</label>
            <?php echo form_input( array( 'id' => 'email', 'name' => 'email', 'class' => 'txtbox' ), set_value( 'email' ) ); ?>
        </li>
        <li>
            <label for="username">用户名</label>
            <?php echo form_input( array( 'id' => 'username', 'name' => 'username', 'class' => 'txtbox' ), set_value( 'username' ) ); ?>
        </li>
        <li>
            <label for="password">密码</label>
            <?php echo form_password( array( 'id' => 'password', 'name' => 'password', 'class' => 'txtbox' ) ); ?>
        </li>
        <li>
            <label for="password">确认密码</label>
            <?php echo form_password( array( 'id' => 'confirmpwd', 'name' => 'confirmpwd', 'class' => 'txtbox' ) ); ?>
        </li>
        <li class="btn_line">
            <?php echo form_submit( array( 'id' => 'regbtn', 'class' => 'btn', 'name' => 'submit' ), '注册' ); ?>
        </li>
        <li class="login_line">
            <a href="<?php echo my_url( 'login' ); ?>" class="login_link">已有帐号</a>
        </li>
    </ul>
    <?php echo create_token(); ?>
    <?php echo form_close(); ?>
</div>
<div class="c"></div>
<script type="text/javascript">
$(document).ready(function(){
    $('#mail').focus();
});
</script>